﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GBMS.DAL;
using KPIS.GERP.GBMS.MODEL;
using KPIS.GERP.GBMS.DALFactory;
using KPIS.GERP.GBMS.IBLL;

namespace KPIS.GERP.GBMS.BLL
{
    public class SystemMenuBLL : ISystemMenuBLL
    {
        private static readonly ISystemMenuDAL dal = DataAccess.CreateSystemMenu();

        public SystemMenuBLL()
        {

        }

        public IList<SystemMenuItemListInfo> LoadMenuByUsername()
        {
            return dal.Search();
        }
        public DataSet LoadMenuByUsername(int UserSeq, string System)
        {
            return dal.LoadMenuByUsername(UserSeq, System);
        }
        public string GetTitlePage(string pageName)
        {
            return dal.GetTitlePage(pageName);
        }
    }
}
